#include <QString>
#include <QVector>
#include "cell.h"

Cell::Cell()
{

}

Cell::Cell(dataType value,const int max)
{
    this->data=value;
    this->height=randHeight(max);
}

void Cell::set(dataType value)
{
    this->data=value;
}

dataType Cell::get(void)
{
	dataType tmp;

	return tmp;
}

int Cell::getHeight(void)
{
	return this->height;
}

void Cell::setHeight(int newheight)
{
    this->height=newheight;
}

Cell *Cell::getNext(int height)
{
	return this->next[height];
}

void Cell::setNext(int height, Cell *newNext)
{
	this->next[height] = newNext;
}

int Cell::randHeight(int max)
{
    int rand;
    while ((rand<1) || (rand>max))
	{
	rand = random();
	}

	return rand;
}
